<?php

/**
 * @author Martin Pernica
 * @copyright 2009
 */

function rank2text($rank)
{
    switch ($rank) {
        case 0:
            return Lang::getBack('com_user', 'anonymous');
            break;
        case 1:
            return Lang::getBack('com_user', 'logged');
            break;
        case 2:
            return Lang::getBack('com_user', 'moderator');
            break;
        case 3:
            return Lang::getBack('com_user', 'editor');
            break;
        case 4:
            return Lang::getBack('com_user', 'administrator');
            break;
    }
}

?>